let t = require;
let  e = module
let  o =  e.exports;
 o.default =  e.exports;

                'use strict';
                console.log("start"),
                    Object.defineProperty(o, '__esModule', {
                        value: !0
                    });
                var n = t('ApiUtils'),
                    i = t('ByteArray'),
                    r = (function() {
                        function t() {}
                        return (
                            (t.toString = function(e, o, n) {
                                void 0 === n && (n = -1);
                                var i = e.toString(o),
                                    r = i.length;
                                return r >= n ? i : t.zeros.substr(0, n - r) + i;
                            }),
                            (t.formatHttpParams = function(t) {
                                var e = '';
                                if (null != t)
                                    for (var o in t) {
                                        e += o + '=' + t[o] + '&';
                                    }
                                return e.length > 0 && (e = e.substr(0, e.length - 1)), e;
                            }),
                            (t.convertPoint = function(t, e) {
                                var o = t.split(e);
                                if (2 == o.length) {
                                    var i = parseFloat(o[0]),
                                        r = parseFloat(o[1]);
                                    if (!isNaN(i) && !isNaN(r)) return n.ApiUtils.v2(i, r);
                                }
                                return null;
                            }),
                            (t.convertPointArray = function(e) {
                                var o = [];
                                if (null != e && e.length > 0)
                                    for (var n = e.split(','), i = 0; i < n.length; i++) {
                                        var r = t.convertPoint(n[i], '|');
                                        o.push(r);
                                    }
                                return o;
                            }),
                            (t.convertNumberArray = function(t, e) {
                                var o = [];
                                if (null != t && t.length > 0)
                                    for (var n = t.split(e), i = 0; i < n.length; i++) {
                                        var r = parseFloat(n[i]);
                                        o.push(r);
                                    }
                                return o;
                            }),
                            (t.convertIntArray = function(t, e) {
                                var o = [];
                                if (null != t && t.length > 0)
                                    for (var n = t.split(e), i = 0; i < n.length; i++) {
                                        var r = parseInt(n[i]);
                                        o.push(r);
                                    }
                                return o;
                            }),
                            (t.convertIntBuffer = function(t, e) {
                                var o;
                                if (null != t && t.length > 0) {
                                    var n = t.split(e);
                                    o = new ArrayBuffer(n.length);
                                    for (var i = new Uint8Array(o), r = 0; r < n.length; r++) {
                                        var a = parseInt(n[r]);
                                        i[r] = a;
                                    }
                                }
                                return o;
                            }),
                            (t.replaceNewLine = function(t) {
                                for (var e = t.split('\\n'), o = '', n = 0; n < e.length; n++) {
                                    e[n].length > 0 &&
                                        (n < e.length - 1 ? (o += e[n] + '\n') : (o += e[n]));
                                }
                                return o;
                            }),
                            (t.getStringLength = function(t) {
                                var e = 0;
                                if (t)
                                    for (var o = 0; o < t.length; o++) {
                                        e += t.charCodeAt(o) > 255 ? 1 : 0.5;
                                    }
                                return e;
                            }),
                            (t.formatUnitNumber = function(t, e) {
                                if ((void 0 === e && (e = !0), e)) {
                                    if (t > 1e6) return Math.floor((t / 1e6) * 10) / 10 + 'm';
                                    if (t > 1e3) return Math.floor((t / 1e3) * 10) / 10 + 'k';
                                }
                                return t + '';
                            }),
                            (t.linkStrings = function(t, e) {
                                void 0 === e && (e = ',');
                                var o = null,
                                    n = t.length;
                                if (n > 0) {
                                    o = '';
                                    for (var i = 0; i < n; i++) {
                                        (o += t[i]), i < n - 1 && (o += e);
                                    }
                                }
                                return o;
                            }),
                            (t.stringToByte = function(t) {
                                var e,
                                    o,
                                    n = new Array();
                                e = t.length;
                                for (var i = 0; i < e; i++) {
                                    (o = t.charCodeAt(i)) >= 65536 && o <= 1114111 ?
                                        (n.push(((o >> 18) & 7) | 240),
                                            n.push(((o >> 12) & 63) | 128),
                                            n.push(((o >> 6) & 63) | 128),
                                            n.push((63 & o) | 128)) :
                                        o >= 2048 && o <= 65535 ?
                                        (n.push(((o >> 12) & 15) | 224),
                                            n.push(((o >> 6) & 63) | 128),
                                            n.push((63 & o) | 128)) :
                                        o >= 128 && o <= 2047 ?
                                        (n.push(((o >> 6) & 31) | 192), n.push((63 & o) | 128)) :
                                        n.push(255 & o);
                                }
                                return n;
                            }),
                            (t.byteToString = function(t) {
                                if ('string' == typeof t) return t;
                                for (
                                    var e = new i.default(), o = [], n = 0; n < t.length; n++
                                ) {
                                    o.push(t[n]);
                                }
                                return e.decodeUTF8(o);
                            }),
                            (t.parseHexStr2Byte = function(t) {
                                var e = 0,
                                    o = t.length;
                                if (o % 2 != 0) return null;
                                o /= 2;
                                for (var n = [], i = 0; i < o; i++) {
                                    var r = t.substr(e, 2),
                                        a = parseInt(r, 16);
                                    n.push(a), (e += 2);
                                }
                                return n;
                            }),
                            (t.parseByte2HexStr = function(t) {
                                for (var e = '', o = 0; o < t.length; o++) {
                                    var n = t[o].toString(16);
                                    1 == n.length && (n = '0' + n), (e += n);
                                }
                                return e;
                            }),
                            (t.getCodeTotal = function(t) {
                                for (var e = 0, o = 0; o < t.length; o++) {
                                    var n = Math.abs(t.charCodeAt(o));
                                    (e += n), n > 58 && e++;
                                }
                                return e;
                            }),
                            (t.zeros =
                                '00000000000000000000000000000000000000000000000000000000000'),
                            t
                        );
                    })();
                (o.default = r), console.log("end");
            module.exports =  e.exports;